package com.st.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@Document(indexName = "es-attractions",shards = 1,replicas = 1)
public class ESAttractions {
    /**
     * 景点Id(主键)
     */
    @Id
    private Integer id;

    /**
     * 景点名
     */
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String name;

    /**
     * 景点图片
     */
    @Field(type = FieldType.Keyword,index = false)
    private String img;

    /**
     * 热门景点：1为热门景点0为默认
     */
    private Integer isHot;

    /**
     * 景点价格
     */
    private Double price;

    /**
     * 省
     */
    @Field(type = FieldType.Keyword)
    private String province;

    /**
     * 市
     */
    @Field(type = FieldType.Keyword)
    private String city;

    /**
     * 区
     */
    @Field(type = FieldType.Keyword)
    private String areas;

    /**
     * 出发日期
     */
    @Field(type = FieldType.Keyword,index = false)
    private String departureData;

    /**
     * 主题
     */
    @Field(type = FieldType.Keyword)
    private String theme;

    /**
     * 景点特色
     */
    @Field(type = FieldType.Keyword,index = false)
    private String feature;

    /**
     * 营业时间
     */
    @Field(type = FieldType.Keyword,index = false)
    private String businessHours;

    /**
     * 景区地址
     */
    @Field(type = FieldType.Keyword,index = false)
    private String site;



}
